package com.pineapple.module.core.standards.pineapple.service;

import java.sql.Connection;
import java.util.List;

import com.pineapple.module.core.standards.hormone.domain.Hormone;
import com.pineapple.module.core.standards.pineapple.domain.Pineapple;
import com.pineapple.module.core.standards.pineapple.domain.PineappleCriteria;
import com.pineapple.module.core.standards.pineapple.domain.PineappleSearch;

public class PineappleManager {
	PineappleDAO dao = null;

	public PineappleManager(){
		dao = new PineappleDAO();
	}

	public List<PineappleSearch> search(PineappleCriteria criteria,Connection conn)throws Exception{
		return dao.search(criteria, conn);
	}

	public void add(Connection conn,Pineapple pineapple)throws Exception{
		dao.add(conn, pineapple);
	}
	public void edit(Connection conn,Pineapple pineapple)throws Exception{
		dao.edit(conn, pineapple);
	}
	public void delete(Connection conn,String userIds)throws Exception{
		dao.delete(conn, userIds);
	}
	public Pineapple searchById(Connection conn,int id)throws Exception{
		return dao.searchById(conn, id);
	}

}
